<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AWTK-JAVA: awtk.Vgcanvas类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AWTK-JAVA
   </div>
   <div id="projectbrief">AWTK JAVA API</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>awtk</b></li><li class="navelem"><a class="el" href="classawtk_1_1_vgcanvas.html">Vgcanvas</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="classawtk_1_1_vgcanvas-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">awtk.Vgcanvas类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a2d85ed62526ddbc363b6164ccc91e638"><td class="memItemLeft" align="right" valign="top"><a id="a2d85ed62526ddbc363b6164ccc91e638"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Vgcanvas</b> (long nativeObj)</td></tr>
<tr class="separator:a2d85ed62526ddbc363b6164ccc91e638"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb07576621120a86a6b2712782e5b65b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#aeb07576621120a86a6b2712782e5b65b">flush</a> ()</td></tr>
<tr class="separator:aeb07576621120a86a6b2712782e5b65b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7cef47a567f66b1796da623618c20846"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a7cef47a567f66b1796da623618c20846">beginPath</a> ()</td></tr>
<tr class="separator:a7cef47a567f66b1796da623618c20846"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66a7a7851bab6e503be80a3ad63b89fc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a66a7a7851bab6e503be80a3ad63b89fc">moveTo</a> (double x, double y)</td></tr>
<tr class="separator:a66a7a7851bab6e503be80a3ad63b89fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ce3440a6509288d24b73ee4c3c855d9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a1ce3440a6509288d24b73ee4c3c855d9">lineTo</a> (double x, double y)</td></tr>
<tr class="separator:a1ce3440a6509288d24b73ee4c3c855d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f4bfdddbe2c7c0d104b935446476391"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a1f4bfdddbe2c7c0d104b935446476391">quadTo</a> (double cpx, double cpy, double x, double y)</td></tr>
<tr class="separator:a1f4bfdddbe2c7c0d104b935446476391"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6279008ff4744629520dcc884feccc35"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a6279008ff4744629520dcc884feccc35">bezierTo</a> (double cp1x, double cp1y, double cp2x, double cp2y, double x, double y)</td></tr>
<tr class="separator:a6279008ff4744629520dcc884feccc35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e48d176440ec86c37662c72eea46938"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a3e48d176440ec86c37662c72eea46938">arcTo</a> (double x1, double y1, double x2, double y2, double r)</td></tr>
<tr class="separator:a3e48d176440ec86c37662c72eea46938"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea63e4a6ea9c8b2c9da9b7f18a543ab4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#aea63e4a6ea9c8b2c9da9b7f18a543ab4">arc</a> (double x, double y, double r, double start_angle, double end_angle, boolean ccw)</td></tr>
<tr class="separator:aea63e4a6ea9c8b2c9da9b7f18a543ab4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62e4d9fa1f3a052d47e1bcc2fc2a1fef"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a62e4d9fa1f3a052d47e1bcc2fc2a1fef">isPointInPath</a> (double x, double y)</td></tr>
<tr class="separator:a62e4d9fa1f3a052d47e1bcc2fc2a1fef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae377abd0cd8ec652f9823aced949d43"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#aae377abd0cd8ec652f9823aced949d43">rect</a> (double x, double y, double w, double h)</td></tr>
<tr class="separator:aae377abd0cd8ec652f9823aced949d43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9ade2b2e882c767fb6b99215ff9f365"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#af9ade2b2e882c767fb6b99215ff9f365">roundedRect</a> (double x, double y, double w, double h, double r)</td></tr>
<tr class="separator:af9ade2b2e882c767fb6b99215ff9f365"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac358bbe8ad4e58c4ec613d3c84884bde"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#ac358bbe8ad4e58c4ec613d3c84884bde">ellipse</a> (double x, double y, double rx, double ry)</td></tr>
<tr class="separator:ac358bbe8ad4e58c4ec613d3c84884bde"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac94a3cbaaea8c151b97344c9e7271222"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#ac94a3cbaaea8c151b97344c9e7271222">closePath</a> ()</td></tr>
<tr class="separator:ac94a3cbaaea8c151b97344c9e7271222"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acccba6ad6d7c833956572a5932a8c580"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#acccba6ad6d7c833956572a5932a8c580">rotate</a> (double rad)</td></tr>
<tr class="separator:acccba6ad6d7c833956572a5932a8c580"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21699e6e9b4b0993cc2bbbbbc5af673a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a21699e6e9b4b0993cc2bbbbbc5af673a">scale</a> (double x, double y)</td></tr>
<tr class="separator:a21699e6e9b4b0993cc2bbbbbc5af673a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef9a19bafd874bb84e9fff268aaabca4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#aef9a19bafd874bb84e9fff268aaabca4">translate</a> (double x, double y)</td></tr>
<tr class="separator:aef9a19bafd874bb84e9fff268aaabca4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c52c09f665961ba5a1de544b572cbb9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a4c52c09f665961ba5a1de544b572cbb9">transform</a> (double a, double b, double c, double d, double e, double f)</td></tr>
<tr class="separator:a4c52c09f665961ba5a1de544b572cbb9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f01ce0c43877ed667f240ebe1b0688a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a3f01ce0c43877ed667f240ebe1b0688a">setTransform</a> (double a, double b, double c, double d, double e, double f)</td></tr>
<tr class="separator:a3f01ce0c43877ed667f240ebe1b0688a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7c7d721a917d7cf9f3113a5dc9c9475"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#ae7c7d721a917d7cf9f3113a5dc9c9475">clipRect</a> (double x, double y, double w, double h)</td></tr>
<tr class="separator:ae7c7d721a917d7cf9f3113a5dc9c9475"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a637a40bbdcba5b05a36f11d6317291f3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a637a40bbdcba5b05a36f11d6317291f3">fill</a> ()</td></tr>
<tr class="separator:a637a40bbdcba5b05a36f11d6317291f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae8296ddfae63d05435e68d0adc7b3b56"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#ae8296ddfae63d05435e68d0adc7b3b56">stroke</a> ()</td></tr>
<tr class="separator:ae8296ddfae63d05435e68d0adc7b3b56"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad66ecf35a273d4a0e83b3d73632757aa"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#ad66ecf35a273d4a0e83b3d73632757aa">paint</a> (boolean <a class="el" href="classawtk_1_1_vgcanvas.html#ae8296ddfae63d05435e68d0adc7b3b56">stroke</a>, <a class="el" href="classawtk_1_1_bitmap.html">Bitmap</a> img)</td></tr>
<tr class="separator:ad66ecf35a273d4a0e83b3d73632757aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae33b7593cc041d31573906483ef1efc0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#ae33b7593cc041d31573906483ef1efc0">setFont</a> (String font)</td></tr>
<tr class="separator:ae33b7593cc041d31573906483ef1efc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafc6a426c08b924028c5f567683f36fc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#aafc6a426c08b924028c5f567683f36fc">setFontSize</a> (double font)</td></tr>
<tr class="separator:aafc6a426c08b924028c5f567683f36fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adec64b4da2d766dccfca0fe322f8c0fc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#adec64b4da2d766dccfca0fe322f8c0fc">setTextAlign</a> (String value)</td></tr>
<tr class="separator:adec64b4da2d766dccfca0fe322f8c0fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6ec30c1ba14f07a2049dc2b89130e11"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#af6ec30c1ba14f07a2049dc2b89130e11">setTextBaseline</a> (String value)</td></tr>
<tr class="separator:af6ec30c1ba14f07a2049dc2b89130e11"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abee532f03acac17f415532579ff527f1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#abee532f03acac17f415532579ff527f1">fillText</a> (String text, double x, double y, double max_width)</td></tr>
<tr class="separator:abee532f03acac17f415532579ff527f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3428329f183ca3b63fba264b998a712c"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a3428329f183ca3b63fba264b998a712c">measureText</a> (String text)</td></tr>
<tr class="separator:a3428329f183ca3b63fba264b998a712c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a520b5b0ec09478bc3fb9676073d20cdd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a520b5b0ec09478bc3fb9676073d20cdd">drawImage</a> (<a class="el" href="classawtk_1_1_bitmap.html">Bitmap</a> img, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh)</td></tr>
<tr class="separator:a520b5b0ec09478bc3fb9676073d20cdd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0919922860a4c128c4171e010826def"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#ac0919922860a4c128c4171e010826def">drawIcon</a> (<a class="el" href="classawtk_1_1_bitmap.html">Bitmap</a> img, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh)</td></tr>
<tr class="separator:ac0919922860a4c128c4171e010826def"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad729029ccd77eb5da377a784822cfb23"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#ad729029ccd77eb5da377a784822cfb23">setAntialias</a> (boolean value)</td></tr>
<tr class="separator:ad729029ccd77eb5da377a784822cfb23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aef15e3f4ec775feaf1d6ca9fda6d0602"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#aef15e3f4ec775feaf1d6ca9fda6d0602">setGlobalAlpha</a> (double alpha)</td></tr>
<tr class="separator:aef15e3f4ec775feaf1d6ca9fda6d0602"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a33790b3eddb873790569dbb28c8422fd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a33790b3eddb873790569dbb28c8422fd">setLineWidth</a> (double value)</td></tr>
<tr class="separator:a33790b3eddb873790569dbb28c8422fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20de08c95a25da53d4656ba2787fc6fd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a20de08c95a25da53d4656ba2787fc6fd">setFillColor</a> (String color)</td></tr>
<tr class="separator:a20de08c95a25da53d4656ba2787fc6fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca466787891a0edd706aa568c8089176"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#aca466787891a0edd706aa568c8089176">setStrokeColor</a> (String color)</td></tr>
<tr class="separator:aca466787891a0edd706aa568c8089176"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace21d0512494c59d191bd84c2c147eb2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#ace21d0512494c59d191bd84c2c147eb2">setLineCap</a> (String value)</td></tr>
<tr class="separator:ace21d0512494c59d191bd84c2c147eb2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02c0976b4b5b33fa6d56f8b33aa1c9e3"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a02c0976b4b5b33fa6d56f8b33aa1c9e3">setLineJoin</a> (String value)</td></tr>
<tr class="separator:a02c0976b4b5b33fa6d56f8b33aa1c9e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a747a124f8fd9dda2b24d009542c26a61"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a747a124f8fd9dda2b24d009542c26a61">setMiterLimit</a> (double value)</td></tr>
<tr class="separator:a747a124f8fd9dda2b24d009542c26a61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6de923f94474938619b2c90259b23f0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#ac6de923f94474938619b2c90259b23f0">save</a> ()</td></tr>
<tr class="separator:ac6de923f94474938619b2c90259b23f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae92ff1bee8378b24b8fbdf7535cdeeb6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="enumawtk_1_1_ret.html">Ret</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#ae92ff1bee8378b24b8fbdf7535cdeeb6">restore</a> ()</td></tr>
<tr class="separator:ae92ff1bee8378b24b8fbdf7535cdeeb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab22baa112b7595f2b09238ad5ba55540"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#ab22baa112b7595f2b09238ad5ba55540">getW</a> ()</td></tr>
<tr class="separator:ab22baa112b7595f2b09238ad5ba55540"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac35e2f9baad22149f907fe47e4d9928b"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#ac35e2f9baad22149f907fe47e4d9928b">getH</a> ()</td></tr>
<tr class="separator:ac35e2f9baad22149f907fe47e4d9928b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7266f293542436eb1509043fba68042"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#af7266f293542436eb1509043fba68042">getStride</a> ()</td></tr>
<tr class="separator:af7266f293542436eb1509043fba68042"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a181832ee658f759369f77f243c42dfaf"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a181832ee658f759369f77f243c42dfaf">getRatio</a> ()</td></tr>
<tr class="separator:a181832ee658f759369f77f243c42dfaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae762a2da9612cc1ca151605a0761aa64"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#ae762a2da9612cc1ca151605a0761aa64">getAntiAlias</a> ()</td></tr>
<tr class="separator:ae762a2da9612cc1ca151605a0761aa64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cb223b577fcd2ca84527d3e5f92d134"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a0cb223b577fcd2ca84527d3e5f92d134">getLineWidth</a> ()</td></tr>
<tr class="separator:a0cb223b577fcd2ca84527d3e5f92d134"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b8c3d2d705e30d62bffe38a7638348d"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a9b8c3d2d705e30d62bffe38a7638348d">getGlobalAlpha</a> ()</td></tr>
<tr class="separator:a9b8c3d2d705e30d62bffe38a7638348d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa06eba23ad588239ecaae74e43521484"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#aa06eba23ad588239ecaae74e43521484">getMiterLimit</a> ()</td></tr>
<tr class="separator:aa06eba23ad588239ecaae74e43521484"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab52a352afeb552c183a95ca7241319bb"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#ab52a352afeb552c183a95ca7241319bb">getLineCap</a> ()</td></tr>
<tr class="separator:ab52a352afeb552c183a95ca7241319bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6bf54bad3a30ed1223a678a028375d7"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#ad6bf54bad3a30ed1223a678a028375d7">getLineJoin</a> ()</td></tr>
<tr class="separator:ad6bf54bad3a30ed1223a678a028375d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8c7daedc6968cf142819fc2a228327d"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#ab8c7daedc6968cf142819fc2a228327d">getFont</a> ()</td></tr>
<tr class="separator:ab8c7daedc6968cf142819fc2a228327d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afaf2649b347fe462ef7e9de784e2e7a5"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#afaf2649b347fe462ef7e9de784e2e7a5">getFontSize</a> ()</td></tr>
<tr class="separator:afaf2649b347fe462ef7e9de784e2e7a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1f8bfb9e6d4a69e3dc0e9a55b284242"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#af1f8bfb9e6d4a69e3dc0e9a55b284242">getTextAlign</a> ()</td></tr>
<tr class="separator:af1f8bfb9e6d4a69e3dc0e9a55b284242"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2924fb9fc9c889ffa81313e9334c74a0"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#a2924fb9fc9c889ffa81313e9334c74a0">getTextBaseline</a> ()</td></tr>
<tr class="separator:a2924fb9fc9c889ffa81313e9334c74a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a852ddac87e6de708097f0c872b01d725"><td class="memItemLeft" align="right" valign="top"><a id="a852ddac87e6de708097f0c872b01d725"></a>
static <a class="el" href="classawtk_1_1_vgcanvas.html">Vgcanvas</a>&#160;</td><td class="memItemRight" valign="bottom"><b>cast</b> (long nativeObj)</td></tr>
<tr class="separator:a852ddac87e6de708097f0c872b01d725"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af734cb83401dcd20c833084eaad36684"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classawtk_1_1_vgcanvas.html">Vgcanvas</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classawtk_1_1_vgcanvas.html#af734cb83401dcd20c833084eaad36684">cast</a> (<a class="el" href="classawtk_1_1_vgcanvas.html">Vgcanvas</a> vg)</td></tr>
<tr class="separator:af734cb83401dcd20c833084eaad36684"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a673a2fc8ba70cd59aa6721bce129cb28"><td class="memItemLeft" align="right" valign="top"><a id="a673a2fc8ba70cd59aa6721bce129cb28"></a>
long&#160;</td><td class="memItemRight" valign="bottom"><b>nativeObj</b></td></tr>
<tr class="separator:a673a2fc8ba70cd59aa6721bce129cb28"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>矢量图画布抽象基类。</p>
<p>具体实现时可以使用agg，nanovg, cairo和skia等方式。</p>
<p>cairo和skia体积太大，不适合嵌入式平台，但在PC平台也是一种选择。</p>
<p>目前我们只提供了基于nanovg的实现，支持软件渲染和硬件渲染。</p>
<p>我们对nanovg进行了一些改进:</p>
<ul>
<li>可以用agg/agge实现软件渲染(暂时不支持文本绘制)。</li>
<li>可以用bgfx使用DirectX(Windows平台)和Metal(iOS)平台硬件加速。</li>
</ul>
<p>示例：</p>
<p>请参考：https://www.w3schools.com/tags/ref_canvas.asp </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="aea63e4a6ea9c8b2c9da9b7f18a543ab4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea63e4a6ea9c8b2c9da9b7f18a543ab4">&#9670;&nbsp;</a></span>arc()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.arc </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>r</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>start_angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>end_angle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>ccw</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>生成一条圆弧。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>原点x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>原点y坐标。 </td></tr>
    <tr><td class="paramname">r</td><td>半径。 </td></tr>
    <tr><td class="paramname">start_angle</td><td>起始角度。 </td></tr>
    <tr><td class="paramname">end_angle</td><td>结束角度。 </td></tr>
    <tr><td class="paramname">ccw</td><td>是否逆时针。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a3e48d176440ec86c37662c72eea46938"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e48d176440ec86c37662c72eea46938">&#9670;&nbsp;</a></span>arcTo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.arcTo </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>r</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>生成一条圆弧路径到指定点。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x1</td><td>起始点x坐标。 </td></tr>
    <tr><td class="paramname">y1</td><td>起始点y坐标。 </td></tr>
    <tr><td class="paramname">x2</td><td>结束点x坐标。 </td></tr>
    <tr><td class="paramname">y2</td><td>结束点y坐标。 </td></tr>
    <tr><td class="paramname">r</td><td>半径。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a7cef47a567f66b1796da623618c20846"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7cef47a567f66b1796da623618c20846">&#9670;&nbsp;</a></span>beginPath()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.beginPath </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>清除之前的路径，并重新开始一条路径。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a6279008ff4744629520dcc884feccc35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6279008ff4744629520dcc884feccc35">&#9670;&nbsp;</a></span>bezierTo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.bezierTo </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>cp1x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>cp1y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>cp2x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>cp2y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>生成一条三次贝塞尔曲线。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">cp1x</td><td>控制点1x坐标。 </td></tr>
    <tr><td class="paramname">cp1y</td><td>控制点1y坐标。 </td></tr>
    <tr><td class="paramname">cp2x</td><td>控制点2x坐标。 </td></tr>
    <tr><td class="paramname">cp2y</td><td>控制点3y坐标。 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af734cb83401dcd20c833084eaad36684"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af734cb83401dcd20c833084eaad36684">&#9670;&nbsp;</a></span>cast()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classawtk_1_1_vgcanvas.html">Vgcanvas</a> awtk.Vgcanvas.cast </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classawtk_1_1_vgcanvas.html">Vgcanvas</a>&#160;</td>
          <td class="paramname"><em>vg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>转换为vgcanvas对象(供脚本语言使用)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">vg</td><td>vgcanvas对象。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>vgcanvas对象。 </dd></dl>

</div>
</div>
<a id="ae7c7d721a917d7cf9f3113a5dc9c9475"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7c7d721a917d7cf9f3113a5dc9c9475">&#9670;&nbsp;</a></span>clipRect()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.clipRect </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>矩形裁剪。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。 </td></tr>
    <tr><td class="paramname">w</td><td>宽度。 </td></tr>
    <tr><td class="paramname">h</td><td>高度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ac94a3cbaaea8c151b97344c9e7271222"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac94a3cbaaea8c151b97344c9e7271222">&#9670;&nbsp;</a></span>closePath()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.closePath </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>闭合路径。</p>
<p>闭合路径是指把起点和终点连接起来，形成一个封闭的多边形。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ac0919922860a4c128c4171e010826def"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0919922860a4c128c4171e010826def">&#9670;&nbsp;</a></span>drawIcon()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.drawIcon </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classawtk_1_1_bitmap.html">Bitmap</a>&#160;</td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sh</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dh</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>绘制图标。</p>
<p>绘制图标时会根据屏幕密度进行自动缩放，而绘制普通图片时不会。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>图片。 </td></tr>
    <tr><td class="paramname">sx</td><td>sx </td></tr>
    <tr><td class="paramname">sy</td><td>sy </td></tr>
    <tr><td class="paramname">sw</td><td>sw </td></tr>
    <tr><td class="paramname">sh</td><td>sh </td></tr>
    <tr><td class="paramname">dx</td><td>dx </td></tr>
    <tr><td class="paramname">dy</td><td>dy </td></tr>
    <tr><td class="paramname">dw</td><td>dw </td></tr>
    <tr><td class="paramname">dh</td><td>dh</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a520b5b0ec09478bc3fb9676073d20cdd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a520b5b0ec09478bc3fb9676073d20cdd">&#9670;&nbsp;</a></span>drawImage()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.drawImage </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classawtk_1_1_bitmap.html">Bitmap</a>&#160;</td>
          <td class="paramname"><em>img</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>sh</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dw</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>dh</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>绘制图片。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">img</td><td>图片。 </td></tr>
    <tr><td class="paramname">sx</td><td>sx </td></tr>
    <tr><td class="paramname">sy</td><td>sy </td></tr>
    <tr><td class="paramname">sw</td><td>sw </td></tr>
    <tr><td class="paramname">sh</td><td>sh </td></tr>
    <tr><td class="paramname">dx</td><td>dx </td></tr>
    <tr><td class="paramname">dy</td><td>dy </td></tr>
    <tr><td class="paramname">dw</td><td>dw </td></tr>
    <tr><td class="paramname">dh</td><td>dh</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ac358bbe8ad4e58c4ec613d3c84884bde"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac358bbe8ad4e58c4ec613d3c84884bde">&#9670;&nbsp;</a></span>ellipse()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.ellipse </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>rx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>ry</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>生成一个椭圆路径。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。 </td></tr>
    <tr><td class="paramname">rx</td><td>圆角半径。 </td></tr>
    <tr><td class="paramname">ry</td><td>圆角半径。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a637a40bbdcba5b05a36f11d6317291f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a637a40bbdcba5b05a36f11d6317291f3">&#9670;&nbsp;</a></span>fill()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.fill </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>填充多边形。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="abee532f03acac17f415532579ff527f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abee532f03acac17f415532579ff527f1">&#9670;&nbsp;</a></span>fillText()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.fillText </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>max_width</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>绘制文本。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>text </td></tr>
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。 </td></tr>
    <tr><td class="paramname">max_width</td><td>最大宽度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aeb07576621120a86a6b2712782e5b65b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb07576621120a86a6b2712782e5b65b">&#9670;&nbsp;</a></span>flush()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.flush </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>flush</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ae762a2da9612cc1ca151605a0761aa64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae762a2da9612cc1ca151605a0761aa64">&#9670;&nbsp;</a></span>getAntiAlias()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.Vgcanvas.getAntiAlias </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否启用反走样功能。 </p>

</div>
</div>
<a id="ab8c7daedc6968cf142819fc2a228327d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8c7daedc6968cf142819fc2a228327d">&#9670;&nbsp;</a></span>getFont()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.Vgcanvas.getFont </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>字体。 </p>

</div>
</div>
<a id="afaf2649b347fe462ef7e9de784e2e7a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afaf2649b347fe462ef7e9de784e2e7a5">&#9670;&nbsp;</a></span>getFontSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.Vgcanvas.getFontSize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>字体大小。 </p>

</div>
</div>
<a id="a9b8c3d2d705e30d62bffe38a7638348d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b8c3d2d705e30d62bffe38a7638348d">&#9670;&nbsp;</a></span>getGlobalAlpha()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.Vgcanvas.getGlobalAlpha </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>全局alpha。 </p>

</div>
</div>
<a id="ac35e2f9baad22149f907fe47e4d9928b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac35e2f9baad22149f907fe47e4d9928b">&#9670;&nbsp;</a></span>getH()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.Vgcanvas.getH </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>canvas的高度 </p>

</div>
</div>
<a id="ab52a352afeb552c183a95ca7241319bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab52a352afeb552c183a95ca7241319bb">&#9670;&nbsp;</a></span>getLineCap()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.Vgcanvas.getLineCap </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>line_cap。 </p><dl class="section see"><dt>参见</dt><dd><a href="http://www.w3school.com.cn/tags/canvas_linecap.asp">http://www.w3school.com.cn/tags/canvas_linecap.asp</a> </dd></dl>

</div>
</div>
<a id="ad6bf54bad3a30ed1223a678a028375d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6bf54bad3a30ed1223a678a028375d7">&#9670;&nbsp;</a></span>getLineJoin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.Vgcanvas.getLineJoin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>line_join。 </p><dl class="section see"><dt>参见</dt><dd><a href="http://www.w3school.com.cn/tags/canvas_linejoin.asp">http://www.w3school.com.cn/tags/canvas_linejoin.asp</a> </dd></dl>

</div>
</div>
<a id="a0cb223b577fcd2ca84527d3e5f92d134"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0cb223b577fcd2ca84527d3e5f92d134">&#9670;&nbsp;</a></span>getLineWidth()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.Vgcanvas.getLineWidth </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>线宽。 </p>

</div>
</div>
<a id="aa06eba23ad588239ecaae74e43521484"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa06eba23ad588239ecaae74e43521484">&#9670;&nbsp;</a></span>getMiterLimit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.Vgcanvas.getMiterLimit </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>miter_limit。 </p><dl class="section see"><dt>参见</dt><dd><a href="http://www.w3school.com.cn/tags/canvas_miterlimit.asp">http://www.w3school.com.cn/tags/canvas_miterlimit.asp</a> </dd></dl>

</div>
</div>
<a id="a181832ee658f759369f77f243c42dfaf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a181832ee658f759369f77f243c42dfaf">&#9670;&nbsp;</a></span>getRatio()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.Vgcanvas.getRatio </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>显示比例。 </p>

</div>
</div>
<a id="af7266f293542436eb1509043fba68042"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7266f293542436eb1509043fba68042">&#9670;&nbsp;</a></span>getStride()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.Vgcanvas.getStride </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>一行占的字节 </p>

</div>
</div>
<a id="af1f8bfb9e6d4a69e3dc0e9a55b284242"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1f8bfb9e6d4a69e3dc0e9a55b284242">&#9670;&nbsp;</a></span>getTextAlign()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.Vgcanvas.getTextAlign </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>文本对齐方式。</p>
<dl class="section see"><dt>参见</dt><dd><a href="http://www.w3school.com.cn/tags/canvas_textalign.asp">http://www.w3school.com.cn/tags/canvas_textalign.asp</a> </dd></dl>

</div>
</div>
<a id="a2924fb9fc9c889ffa81313e9334c74a0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2924fb9fc9c889ffa81313e9334c74a0">&#9670;&nbsp;</a></span>getTextBaseline()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">String awtk.Vgcanvas.getTextBaseline </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>文本基线。</p>
<dl class="section see"><dt>参见</dt><dd><a href="http://www.w3school.com.cn/tags/canvas_textbaseline.asp">http://www.w3school.com.cn/tags/canvas_textbaseline.asp</a> </dd></dl>

</div>
</div>
<a id="ab22baa112b7595f2b09238ad5ba55540"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab22baa112b7595f2b09238ad5ba55540">&#9670;&nbsp;</a></span>getW()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int awtk.Vgcanvas.getW </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>canvas的宽度 </p>

</div>
</div>
<a id="a62e4d9fa1f3a052d47e1bcc2fc2a1fef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62e4d9fa1f3a052d47e1bcc2fc2a1fef">&#9670;&nbsp;</a></span>isPointInPath()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">boolean awtk.Vgcanvas.isPointInPath </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>检查点是否在当前路径中。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回TRUE表示在，否则表示不在。 </dd></dl>

</div>
</div>
<a id="a1ce3440a6509288d24b73ee4c3c855d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ce3440a6509288d24b73ee4c3c855d9">&#9670;&nbsp;</a></span>lineTo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.lineTo </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>生成一条线段(从当前点到目标点)。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a3428329f183ca3b63fba264b998a712c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3428329f183ca3b63fba264b998a712c">&#9670;&nbsp;</a></span>measureText()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double awtk.Vgcanvas.measureText </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>测量文本的宽度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">text</td><td>text</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回text的宽度。 </dd></dl>

</div>
</div>
<a id="a66a7a7851bab6e503be80a3ad63b89fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a66a7a7851bab6e503be80a3ad63b89fc">&#9670;&nbsp;</a></span>moveTo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.moveTo </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>移动当前点到指定点。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ad66ecf35a273d4a0e83b3d73632757aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad66ecf35a273d4a0e83b3d73632757aa">&#9670;&nbsp;</a></span>paint()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.paint </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>stroke</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classawtk_1_1_bitmap.html">Bitmap</a>&#160;</td>
          <td class="paramname"><em>img</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>用图片填充/画多边形(可能存在可移植性问题，除非必要请勿使用)。 多边形的顶点必须在图片范围内，可以通过矩阵变化画到不同的位置。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">stroke</td><td>TRUE表示画线FALSE表示填充。 </td></tr>
    <tr><td class="paramname">img</td><td>图片。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a1f4bfdddbe2c7c0d104b935446476391"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f4bfdddbe2c7c0d104b935446476391">&#9670;&nbsp;</a></span>quadTo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.quadTo </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>cpx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>cpy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>生成一条二次贝塞尔曲线。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">cpx</td><td>控制点x坐标。 </td></tr>
    <tr><td class="paramname">cpy</td><td>控制点y坐标。 </td></tr>
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aae377abd0cd8ec652f9823aced949d43"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae377abd0cd8ec652f9823aced949d43">&#9670;&nbsp;</a></span>rect()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.rect </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>h</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>生成一个矩形路径。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。 </td></tr>
    <tr><td class="paramname">w</td><td>宽度。 </td></tr>
    <tr><td class="paramname">h</td><td>高度。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ae92ff1bee8378b24b8fbdf7535cdeeb6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae92ff1bee8378b24b8fbdf7535cdeeb6">&#9670;&nbsp;</a></span>restore()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.restore </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>恢复上次save的状态。</p>
<p>save/restore必须配套使用，否则可能导致状态混乱。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="acccba6ad6d7c833956572a5932a8c580"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acccba6ad6d7c833956572a5932a8c580">&#9670;&nbsp;</a></span>rotate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.rotate </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>rad</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>旋转。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">rad</td><td>角度</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af9ade2b2e882c767fb6b99215ff9f365"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9ade2b2e882c767fb6b99215ff9f365">&#9670;&nbsp;</a></span>roundedRect()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.roundedRect </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>w</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>h</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>r</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>生成一个圆角矩形路径。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x坐标。 </td></tr>
    <tr><td class="paramname">y</td><td>y坐标。 </td></tr>
    <tr><td class="paramname">w</td><td>宽度。 </td></tr>
    <tr><td class="paramname">h</td><td>高度。 </td></tr>
    <tr><td class="paramname">r</td><td>圆角半径。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ac6de923f94474938619b2c90259b23f0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6de923f94474938619b2c90259b23f0">&#9670;&nbsp;</a></span>save()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.save </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>保存当前的状态。如颜色和矩阵等信息。</p>
<p>save/restore必须配套使用，否则可能导致状态混乱。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a21699e6e9b4b0993cc2bbbbbc5af673a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a21699e6e9b4b0993cc2bbbbbc5af673a">&#9670;&nbsp;</a></span>scale()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.scale </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>缩放。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x方向缩放比例。 </td></tr>
    <tr><td class="paramname">y</td><td>y方向缩放比例。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ad729029ccd77eb5da377a784822cfb23"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad729029ccd77eb5da377a784822cfb23">&#9670;&nbsp;</a></span>setAntialias()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.setAntialias </td>
          <td>(</td>
          <td class="paramtype">boolean&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置是否启用反走样。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>是否启用反走样。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a20de08c95a25da53d4656ba2787fc6fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a20de08c95a25da53d4656ba2787fc6fd">&#9670;&nbsp;</a></span>setFillColor()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.setFillColor </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>color</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置填充颜色。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">color</td><td>颜色。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ae33b7593cc041d31573906483ef1efc0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae33b7593cc041d31573906483ef1efc0">&#9670;&nbsp;</a></span>setFont()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.setFont </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>font</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置字体的名称。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">font</td><td>字体名称。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aafc6a426c08b924028c5f567683f36fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aafc6a426c08b924028c5f567683f36fc">&#9670;&nbsp;</a></span>setFontSize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.setFontSize </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>font</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置字体的大小。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">font</td><td>字体大小。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aef15e3f4ec775feaf1d6ca9fda6d0602"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef15e3f4ec775feaf1d6ca9fda6d0602">&#9670;&nbsp;</a></span>setGlobalAlpha()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.setGlobalAlpha </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>alpha</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置全局透明度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">alpha</td><td>global alpha。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ace21d0512494c59d191bd84c2c147eb2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace21d0512494c59d191bd84c2c147eb2">&#9670;&nbsp;</a></span>setLineCap()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.setLineCap </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置line cap。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>取值：butt|round|square，必须为常量字符串。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a02c0976b4b5b33fa6d56f8b33aa1c9e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a02c0976b4b5b33fa6d56f8b33aa1c9e3">&#9670;&nbsp;</a></span>setLineJoin()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.setLineJoin </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置line join。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>取值：bevel|round|miter，必须为常量字符串。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a33790b3eddb873790569dbb28c8422fd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a33790b3eddb873790569dbb28c8422fd">&#9670;&nbsp;</a></span>setLineWidth()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.setLineWidth </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置线条的宽度。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>线宽。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a747a124f8fd9dda2b24d009542c26a61"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a747a124f8fd9dda2b24d009542c26a61">&#9670;&nbsp;</a></span>setMiterLimit()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.setMiterLimit </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置miter limit。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>miter limit</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aca466787891a0edd706aa568c8089176"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca466787891a0edd706aa568c8089176">&#9670;&nbsp;</a></span>setStrokeColor()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.setStrokeColor </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>color</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置线条颜色。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">color</td><td>颜色。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="adec64b4da2d766dccfca0fe322f8c0fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adec64b4da2d766dccfca0fe322f8c0fc">&#9670;&nbsp;</a></span>setTextAlign()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.setTextAlign </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置文本水平对齐的方式。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>取值：left|center|right，必须为常量字符串。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="af6ec30c1ba14f07a2049dc2b89130e11"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6ec30c1ba14f07a2049dc2b89130e11">&#9670;&nbsp;</a></span>setTextBaseline()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.setTextBaseline </td>
          <td>(</td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>value</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置文本垂直对齐的方式。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">value</td><td>取值：top|middle|bottom，必须为常量字符串。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a3f01ce0c43877ed667f240ebe1b0688a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f01ce0c43877ed667f240ebe1b0688a">&#9670;&nbsp;</a></span>setTransform()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.setTransform </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>e</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>f</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>设置变换矩阵。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>a </td></tr>
    <tr><td class="paramname">b</td><td>b </td></tr>
    <tr><td class="paramname">c</td><td>c </td></tr>
    <tr><td class="paramname">d</td><td>d </td></tr>
    <tr><td class="paramname">e</td><td>e </td></tr>
    <tr><td class="paramname">f</td><td>f</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="ae8296ddfae63d05435e68d0adc7b3b56"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae8296ddfae63d05435e68d0adc7b3b56">&#9670;&nbsp;</a></span>stroke()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.stroke </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>画线。</p>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="a4c52c09f665961ba5a1de544b572cbb9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c52c09f665961ba5a1de544b572cbb9">&#9670;&nbsp;</a></span>transform()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.transform </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>c</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>e</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>f</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>变换矩阵。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">a</td><td>a </td></tr>
    <tr><td class="paramname">b</td><td>b </td></tr>
    <tr><td class="paramname">c</td><td>c </td></tr>
    <tr><td class="paramname">d</td><td>d </td></tr>
    <tr><td class="paramname">e</td><td>e </td></tr>
    <tr><td class="paramname">f</td><td>f</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<a id="aef9a19bafd874bb84e9fff268aaabca4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aef9a19bafd874bb84e9fff268aaabca4">&#9670;&nbsp;</a></span>translate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="enumawtk_1_1_ret.html">Ret</a> awtk.Vgcanvas.translate </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>y</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>平移。</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>x方向偏移。 </td></tr>
    <tr><td class="paramname">y</td><td>y方向偏移。</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回RET_OK表示成功，否则表示失败。 </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>output/Vgcanvas.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
